/**
 * 		EncryptorSimpleFactory.java
 *  Adrián E. Córdoba 		14/07/2013
 */
package ar.com.adriancordoba.app.common.encryptor;

/**
 *
 * @author Adrián E. Córdoba
 *
 */
public class EncryptorSimpleFactory {
	public enum EncryptType {
		MD5
	};

	private Encryptor encryptor;
	
	public Encryptor getEncryptor(EncryptType type){
		if(encryptor == null){
			if(type == EncryptType.MD5)
				encryptor = new MD5Encryptor();
		}
		return encryptor;
	}
}
